package com.mf.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Author: lmf
 * @Create: 2024/9/1 21:16
 * Description:  合同信息
 */
@Data
public class ContractInfoVo {
    @Schema(description = "id")
    private Integer id;


    /**
     * 开始日期
     */
    @Schema(description = "开始日期", example = "2024-09-01")
    @NotNull(message = "开始日期不能为空")
    private LocalDate start;

    /**
     * 结束日期
     */
    @Schema(description = "结束日期", example = "2024-09-01")
    @NotNull(message = "结束日期不能为空")
    private LocalDate end;

    /**
     * 年限
     */
    @Schema(description = "年限", example = "1")
    @NotNull(message = "年限不能为空")
    private Integer ageLimit;

    /**
     * 签订日期
     */
    @Schema(description = "签订日期", example = "2024-09-01")
    @NotNull(message = "签订日期不能为空")
    private LocalDate dateOfSigning;

    /**
     * 备注
     */
    private String remark;

    /**
     * 花名册id
     */
    @Schema(description = "花名册id")
    @NotNull(message = "花名册id不能为空")
    private Integer rosterId;

}
